<?php

namespace app\front\controller\home;
use app\BaseController;
use app\api\service\clockin\ClockinActivityService;
use think\facade\View;

class ClockinZone extends BaseController
{
    /**
     * 获取所有类型在线的公共打卡活动
     */
    public function index()
    {

        return View::fetch("home/clockin_zone");
    }

    public function poem()
    {
        $serviceClockinActivity = new ClockinActivityService();
        $activityList = $serviceClockinActivity->getOnlineClockinActivityList($serviceClockinActivity::ARR_CONTENT_TYPE['poem']);
        View::assign("activity_list", $activityList);
        return View::fetch("home/clockin_poem");
    }
}
